package com.liu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("register")
public class Register {
    private String id;

    private String name;

    private String idCard;

    private String siNumber;

    private double registerMoney;

    private String phone;//tiá

    private Integer isPay;

    private Integer sex;//性别0-男1-女

    private Integer age;//年龄

    private Integer consultation;//i Ѳ-J 1-E

    private Integer department;

    private Integer status;

    @DateTimeFormat(pattern = "yy-MM-dd")
    private Date registerDate;

    private String remark;

    //作为外键使用
    private Integer did;

    //非数据列 医生名字
    @TableField(exist = false)
    private String doctorName;

}
